package day240519_report.e5;

import java.time.LocalDate;

public class SecurityGuard extends Staff{
    private String skills;
    private double dangerousAllowance;

    public SecurityGuard(String name, String address, int age, String sex, double salary, LocalDate dateHired, String skills, double dangerousAllowance) {
        super(name, address, age, sex, salary, dateHired);
        this.skills = skills;
        this.dangerousAllowance = dangerousAllowance;
    }

    @Override
    public double getSalary() {
        return super.getSalary() + dangerousAllowance;
    }
}

